﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_UpdateInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            HttpCookie _user = Request.Cookies["userinfo"];
            if (Request.Cookies["userinfo"] != null)
            {
                if (_user["username"] == null)
                    Response.RedirectToRoute("Index");
                else
                    hndusername.Value = _user["username"];
            }
            else
                Response.RedirectToRoute("Index");
        }
        catch (Exception ex)
        {
            Response.RedirectToRoute("Index");
        }
    }
}